package com.cong.config;

import org.springdoc.core.GroupedOpenApi;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class SwaggerConfig {

    @Bean
    public GroupedOpenApi publicApi() {
        return GroupedOpenApi.builder()
                .group("spring-boot-admin")
                // 修改: 增加对 /newsArticle/** 的路径匹配
                .pathsToMatch("/meetingRecords/**", "/newsArticle/**")  // 确保路径与实际 Controller 路径匹配
                .build();
    }

}